package ${package.ServiceImpl};

import java.util.Map;
import java.util.List;
import com.object.utils.MyQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.object.utils.Q;
import org.springframework.stereotype.Service;
import ${package.Service}.${table.serviceName};
import ${package.Mapper}.${table.mapperName};
import ${package.Entity}.${entity};


/**
* ${table.comment}
*
**/
@Service
public class ${table.serviceImplName} extends ServiceImpl<${table.mapperName}, ${entity}> implements ${table.serviceName}
{
@Override
public Q<List<${entity}>> listPage(Map<String, Object> params,Boolean isPage)
    {
        MyQueryWrapper<${entity}> wrapper = new MyQueryWrapper<>(params, ${entity}.class);
        QueryWrapper<${entity}> queryWrapper = wrapper.ConstructQuery();
        if (isPage) {
                  return wrapper.pageResponse(this, queryWrapper);
        }
           return new Q<List<${entity}>>().ok(list(queryWrapper));
    }
}
